package com.zxs.product.controller;

import com.zxs.product.service.PictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author zxs
 * *8 15:11
 */
@RestController
@RequestMapping("product")
public class PictureController {

    @Autowired
    private PictureService pictureService;

    @PostMapping("pictures")
    public Object productPictures(@RequestBody Map<String,Integer> param){
        Integer productID = param.get("productID");
        return pictureService.pictures(productID);
    }
}
